package han.bifang.common.entity;
import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * The persistent class for the SOA_WEBSERVICESMETHOD database table.
 * 
 * @author Kent
 */
public class SoaWebServicesMethod  implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;
	private String id;
	private String methodName;
	private String namespace;
	
	private String soapAction;
	private String versionId;

    public SoaWebServicesMethod() {
    }

	public String getId() {
		return this.id;
	}
	public void setId(String id) {
		this.id = id;
	}

	public String getMethodName() {
		return this.methodName;
	}
	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getNamespace() {
		return this.namespace;
	}
	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}

	

	public String getSoapAction() {
		return this.soapAction;
	}
	public void setSoapAction(String soapAction) {
		this.soapAction = soapAction;
	}

	public String getVersionId() {
		return this.versionId;
	}
	public void setVersionId(String versionId) {
		this.versionId = versionId;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof SoaWebServicesMethod)) {
			return false;
		}
		SoaWebServicesMethod castOther = (SoaWebServicesMethod)other;
		return new EqualsBuilder()
			.append(this.getId(), castOther.getId())
			.isEquals();
    }
    
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
    }   

	public String toString() {
		return new ToStringBuilder(this)
			.append("id", getId())
			.append("methodName", getMethodName())
			.append("namespace", getNamespace())
			.append("soapAction", getSoapAction())
			.append("versionId", getVersionId())
			.toString();
	}
}